lockdown: Print current->comm in restriction messages
authorDavid Howells <dhowells@redhat.com>
Wed, 28 Feb 2018 14:43:03 +0000 (14:43 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 19 Nov 2019 01:43:33 +0000 (01:43 +0000)
commita260130c556ade77746e6bac7b316e5bf1ec9505
tree75ea94a95dfc820c3ece0c7d31e75e1c27b255c9
parent5041e2e84a663188a072091676d7b8775db69d3a
lockdown: Print current->comm in restriction messages

Print the content of current->comm in messages generated by lockdown to
indicate a restriction that was hit.  This makes it a bit easier to find
out what caused the message.

The message now patterned something like:

Lockdown: <comm>: <what> is restricted; see man kernel_lockdown.7

Signed-off-by: David Howells <dhowells@redhat.com>
Gbp-Pq: Topic features/all/lockdown
Gbp-Pq: Name 0030-lockdown-Print-current-comm-in-restriction-messages.patch
security/lock_down.c